<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="./icon.svg" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <title>webComponents</title>
</head>
<script type="module" src="./index.js"></script>
<wh-dropdown text="455" option="1"
  options='[{ "label": "Option 1", "value": "1" }, { "label": "Option 2", "value": "2" }]'></wh-dropdown>
<script>
  const element = document.querySelector('wh-dropdown');
  element.addEventListener("onOptionChange", (event) => {
    console.log(event.detail);
  });
  setTimeout(() => {
    element.text = 99999;
  }, 2000);
</script>